<?php
namespace Data;

class Order
{
    public static function Run($default)
    {
        if (isset($_GET['order']) && $_GET['order'] != 'no') {
            return "{$_GET['field']}" . ($_GET['order'] == 'desc' ? " DESC" : "");
        }
        return $default;
    }
}
